App({
  globalData: {
    baseUrl: 'http://localhost:3000', // 修改为你的服务器地址
    userInfo: null
  },

  onLaunch() {
    console.log('App Launch');
    // 检查登录状态
    const token = wx.getStorageSync('token');
    if (token) {
      this.globalData.token = token;
    }
  }
});